package com.guguskins.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guguskins.back.entity.GuGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 饰品表 Mapper 接口
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-05-14
 */
@Repository
public interface GuGoodsMapper extends BaseMapper<GuGoods> {
    List<GuGoods> getGoodsList(@Param("boxId") long boxId);

    List<GuGoods> getGoodsListByRollId(@Param("rollId") long rollId);

    List<GuGoods> getDetailGoodsListByRollId(@Param("rollId") long rollId, @Param("searchKey") String searchKey);

    List<GuGoods> getContractGoodsPageDate(@Param("index") int index, @Param("size") int size, @Param("searchKey") String searchKey);

    long getContractGoodsPageTotal(@Param("searchKey") String searchKey);

}
